<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="white" />
		<title>钱包-提现</title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css">
		<link rel="stylesheet" href="../public/css/jquery-weui.css">
		<link rel="stylesheet" href="../public/css/common.css" />
		<link rel="stylesheet" href="css/recharge-withdraw.css" />
		<link rel="stylesheet" href="css/pwd-popup.css" />
		<script src="../public/js/jquery-2.1.4.js"></script>
		<script src="../public/js/template-web.js"></script>
		<script src="../public/js/font_size.js"></script>
		<script src="../public/js/common.js"></script>
		<script src="js/recharge-withdraw.js"></script>
	</head>

	<body>
		<div class="wrap container">
			<div id="wallet-content" class="wallet-content">
				<script id="wallet-content-tpl" type="text/html">
					<div class="wallet-header">
						<div class="title">
							<div class="icon">
								<a href="javascript:history.back(-1);"><img class="img-responsive" src="images/arrow_left@2x.png" /></a>
							</div>
							<div class="text">{{type=='cz'?'充值':'提现'}}</div>
						</div>
					</div>
					<div class="wallet-body">
						<div class="input-box" style="margin-bottom: 0.84rem;">
							<div class="label">收款账户</div>
							<input id="callbackVal" type="text" onclick="WalletInteractive.chooseWallet()" readonly placeholder="请选择收款区块链钱包" />
							<div class="arrow-icon"></div>
							<div class="tips">账户余额：{{rs.yunB}}云币</div>
						</div>
						<div class="row-wrap" style="margin-bottom: 0.42rem;">
							<div class="trans-box left">
								<div class="icon"><img src="images/yb@2x.png" /></div>
								<div class="count ellipsis-1"><input id="withDrawVal" onkeyup="countMoney(this)" placeholder="0.00" type="number" /></div>
							</div>
							<div class="exchange-icon"></div>
							<div class="trans-box right">
								<div class="icon"><img src="images/AIP@2x.png" /></div>
								<div class="count ellipsis-1"><input id="countRes" readonly placeholder="0.00" type="text" /></div>
							</div>
						</div>
						{{if type=='cz'}}
						<div class="slider-wrap">
							<div class="slider-title">矿工费
								<div class="tips"></div>
							</div>
							<div id="slider" class="slider-body">
								<div class="weui-slider">
									<div class="weui-slider__inner">
										<div class="weui-slider__track"></div>
										<div class="weui-slider__handler"></div>
									</div>
								</div>
							</div>
							<div class="slider-text">
								<div class="left">慢</div>
								<div id="slider-value" class="middle" style="text-align: center;font-size: 0.24rem;">0 gwei</div>
								<div class="right" style="text-align: right;">快</div>
							</div>
							<div class="slider-switch">
								<label for="switch" class="weui-switch-cp">
						        <input id="switch" class="weui-switch-cp__input" type="checkbox">
						        <div class="weui-switch-cp__box"></div>
				    		</label>
								<div class="title">高级</div>
							</div>
						</div>
						<div class="submit-btn">充值</div>
						{{/if}} {{if type=='tx'}}
						<div class="tips-box" style="margin-bottom: 4.00rem;">1.提现200云币起提（200的整倍数提现） <br />2.提现封顶：报单总额的50％</div>
						<div class="submit-btn" onclick="doWithdraw()">提现</div>
						{{/if}}
					</div>
				</script>
			</div>
		</div>
	</body>
	<div id="pwd-popup" class="weui-popup__container">
		<div class="weui-popup__overlay"></div>
		<div class="wallet-content weui-popup__modal">
			<div class="wallet-header">
				<div class="title">
					<div class="icon">
						<a href="javascript:;" onclick="$.closePopup();$('#popup-ipt').val('')"><img class="img-responsive" src="images/arrow_left@2x.png" /></a>
					</div>
					<div class="text">资金密码</div>
				</div>
			</div>
			<div class="section container p-0">
				<div class="row justify-content-center">
					<div class="col-auto">请输入6位数资金密码</div>
				</div>
				<div class="row mt-2 justify-content-center">
					<div class="col-auto d-flex justify-content-center">
						<input id="popup-ipt" maxlength="6" type="text" placeholder="请输入资金密码" class="p-0">
					</div>
				</div>
				<div class="row justify-content-center">
					<div class="col-auto loginBtn d-flex justify-content-center">
						<span class="align-self-center" onclick="submitData()">提交</span>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="https://cdn.bootcss.com/jquery-weui/1.2.1/js/jquery-weui.min.js"></script>

</html>